import request from '@/utils/request';

/** 添加菜单 */
export function menuAdd(params: Record<string, any>) {
  return request.post({ url: '/auth.menu/add', params });
}
/** 菜单全部 */
export function menuAll(params?: Record<string, any>) {
  return request.get({ url: '/auth.menu/all', params });
}

/** 菜单删除 */
export function menuDelete(params: Record<string, any>) {
  return request.post({ url: '/auth.menu/delete', params });
}

/**  菜单详情 */
export function menuDetail(params: Record<string, any>) {
  return request.get({ url: '/auth.menu/detail', params });
}

/** 编辑菜单 */
export function menuEdit(params: Record<string, any>) {
  return request.post({ url: '/auth.menu/edit', params });
}

/** 菜单列表 */
export function menuLists(params: Record<string, any>) {
  return request.get({ url: '/auth.menu/lists', params });
}
